import {HomeScreen} from '../pages/HomeScreen/HomeScreen'
import {SettingsScreen} from "../pages/SettingsScreen/SettingsScreen";
import WellComeOne from "../pages/Login/WellComeOne";
import React from "react";
import {StackScreen} from "../pages/StackScreen";


type menuType={
    name:string,
    component:({})=>JSX.Element,
    tabBarLabel:string,
    iconName:string,
    stackMenu?:stackMenuType[]
}
type stackMenuType={
    name:string,
    component:({})=>JSX.Element,
}
const menuConfig:menuType[]=[
    {
        name:"Home",
        component:HomeScreen,
        tabBarLabel:"家园",
        iconName:"home",
        stackMenu:[
            {
                name:"settingScreen",
                component:HomeScreen
            },
            {
                name:"WellComeOne",
                component:WellComeOne
            }
        ]
    },
    {
        name:"StackScreen",
        component:StackScreen,
        tabBarLabel:"栈路由",
        iconName:"cog"
    },
]


export {menuConfig};
export type { stackMenuType };
